package com.sos.comm
{
	public class CallSequenceProgressEvent extends CallSequenceEvent
	{
		
		// -------------------------------------------------------------------------------
		// CONSTANTS
		// -------------------------------------------------------------------------------
		
		public static const		PROGRESS:String			= "sequence_progress";
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		private var _call:Call;
		private var _current:int;
		private var _total:int;
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		public function CallSequenceProgressEvent(sequence:CallSequence, execCall:Call, current:int, total:int)
		{
			// ancestor constructor
			super(PROGRESS, sequence);
			// Initialization
			_call 	 = execCall;
			_current = current;
			_total   = total;
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------
		
		public function get call():Call
		{
			return _call;
		}

		public function get current():int
		{
			return _current;
		}

		public function get total():int
		{
			return _total;
		}

	}
}